package b1.scenes.fight
{
	import b1.net.*;
	
	import flash.display.Sprite;
	
	import com.greensock.TweenLite;

	public class CollisionStar extends Sprite
	{
		public function CollisionStar()
		{
			super();
			var CollisionImg:Class = ResourceHelper.getInstance().getClassByName("CollisionImg");
			var starImg:Sprite = new CollisionImg();
			starImg.x = -starImg.width / 2;
			starImg.y = -starImg.height / 2;
			addChild(starImg);
			TweenLite.from(this, 0.1, {scaleX:0, scaleY:0, onComplete:close});
		}
		
		public function close():void
		{
			if (this.parent != null)
				this.parent.removeChild(this);
		}
		
	}
}